package com.itheima.reggie.service;

import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeService {

    //登录
    ResultInfo login(String username, String password);
    //根据name
    List<Employee> findByName(String name);
    //保存员工
    void save(Employee employee);
    //根据id查询员工
    Employee finById(Long id);
    //更新员工
    void update(Employee employee);

}
